import countReducer from "./reducers/countReducer";
import movieReducer from "./reducers/movieReducer";
import {createStore,applyMiddleware,combineReducers} from 'redux'
import thunk from 'redux-thunk'

//组合
const allReducer = combineReducers({
  movie:movieReducer,
  count:countReducer
})

//创建store
const store = createStore(allReducer,applyMiddleware(thunk))

export default store